package com.huawei.lynnbit.tool.cocos.config.game;

import lombok.Data;

@Data
public class ExportConfig {
    private String orientation;

    private String initialScene;

    private String jsEngine;

    public boolean isPortrait() {
        return orientation.equalsIgnoreCase("portrait");
    }

    public boolean isLandscape() {
        return orientation.equalsIgnoreCase("landscape");
    }

    public String getDestOrientation() {
        if (isPortrait()) {
            return "portrait";
        }

        if (isLandscape()) {
            return "auto_rotation_landscape_restricted";
        }

        return "portrait";
    }

    public boolean isValid() {
        return true;
    }
}
